#include<iostream>

using namespace std;
int main() {
    int total{ 0 };
    int gradeCounter{ 1 };
    while (gradeCounter <= 10) {
        cout << "endter grade: ";
        int grade;
        cin >> grade;
        total = total + grade;
        gradeCounter = gradeCounter + 1;
    }

    int average{ total / 10 };
    cout << "\nTotal of grade is " << total;
    cout << "\nClass average is " << average << "\n";
    return 0;
}